<!DOCTYPE html>
<html>
<head>
    <title>注册 - 文件传输工具</title>
    <meta charset="UTF-8">
    <style>
        /* 使用与登录页面相同的样式 */
    </style>
</head>
<body>
    <div class="login-container">
        <h2>注册</h2>
        {% with messages = get_flashed_messages() %}
            {% if messages %}
                <div class="message">{{ messages[0] }}</div>
            {% endif %}
        {% endwith %}
        <form method="POST">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" required>
            </div>
            <button type="submit">注册</button>
        </form>
        <div class="register-link">
            <a href="{{ url_for('auth.login') }}">已有账号？立即登录</a>
        </div>
    </div>
</body>
</html>
